<?php
class Test
{
	public function dowhile()
	{
		$interval = 10;
		$stop = 1;
		do {
			if( $stop == 10 ) break;
			file_put_contents(func_get_arg(0).'.cts',' Current Time: '.date('H:i:s').' Stop: '.$stop);
			$stop++;
			sleep ( $interval );
		} while ( true );
	}
	
}